import request from '@/utils/request'
import {SERVICE_URL,BASE_URL} from '@/config/index.js'

//  首页幻灯片
export function getHomeInfo (data) {
	return request.get({
		url: SERVICE_URL + '/v1/default/index'
	})
}
//我的自选
export function myFutures (data) {
	return request.get({
		url:'https://socket.sou-liang.com/api/myFutures',
		data
	})
}
// 47.102.157.67 / 192.168.43.133 
//风险测评
export function checkTopic (data) {
	return request.get({
		url:BASE_URL+'v1/checkTopic',
		// url:'http://192.168.43.133:8070/api/v1/checkTopic',
		data
	})
}
//提交测评
export function checkevaluat (data) {
	return request.get({
		url:SERVICE_URL+'v1/trade/strategy/evaluat',
		// url:'http://192.168.43.133:8070/api/v1/checkTopic',
		data
	})
}

//反馈
export function suggest (data) {
	return request.post({
		url:SERVICE_URL+'/v1/trade/strategy/suggest',
		data
	})
}
//我的反馈
export function mysuggest (data) {
	return request.get({
		url:SERVICE_URL+'/v1/trade/strategy/mysuggest',
		// url:'http://api.sou-liang.com/api/v1/trade/strategy/suggests',
		data
	})
}
// 反馈赞
export function suggeststatus (data) {
	return request.post({
		url:SERVICE_URL+'/v1/trade/strategy/suggeststatus',
		// url:'http://api.sou-liang.com/api/v1/trade/strategy/suggests',
		data
	})
}
//合约查询
export function searchData (data) {
	return request.get({
		// url:'http://47.102.157.67:9500/searchData'
		url:'https://md.sou-liang.com/api/searchData',
		data
	})
}
//隐私政策 用户协议 隐私条款
export function Userterms (data) {
	return request.get({
		url:BASE_URL+'v1/contract',
		data
	})
}
//上传图片
export function images (data) {
	return request.post({
		url:SERVICE_URL+'v1/file/images',
		data
	})
}
//服务消息详情
export function weekStatistics (data) {
	return request.get({
		url:BASE_URL+'v1/weekStatistics',
		data
	})
}

  // id  用户id
// export function checkTopic (data) {
// 	return request.get({
// 		url:BASE_URL+'v1/checkTopic'
// 	})
// }